import React, { Component } from 'react'
import {
  SafeAreaView,
  ScrollView,
  StatusBar,
  StyleSheet,
  Text,
  useColorScheme,
  View,
  Button,
  Alert,
  Switch,
  ActivityIndicator,
  Platform,
  Image,
  Dimensions,
} from 'react-native'

export default function index() {

  return (
    <View style={[styles.container]}>
      <Image
        style={[styles.image]}
        source={require('../assets/images/5574f6.jpg')}
      />

      <Image
        style={[styles.image]}
        source={{ uri: 'https://img2.baidu.com/it/u=738945866,1808195090&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1422' }}
        resizeMode="contain" // cover/contain/center/stretch
      />
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
  },
  image: {
    width: Dimensions.get('window').width,
    height: 200,
    marginBottom: 10,
  }
})
